package com.mvc.model;

import java.lang.reflect.Method;
import java.util.List;

/**
 * @author Kirito
 * @description: MappedHanler --> 封装控制器controller和请求uri映射关系
 * @date 2020/04/09
 */
public class MappedHandler {
    // 处理请求的控制器，即controller
    private Object handler;
    // 请求的uri
    private String uri;
    // 请求对应的方法
    private Method method;
    // 方法含有的参数
    private List<MethodParameter> parameters;

    public Object getHandler() {
        return handler;
    }

    public void setHandler(Object handler) {
        this.handler = handler;
    }

    public String getUri() {
        return uri;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    public Method getMethod() {
        return method;
    }

    public void setMethod(Method method) {
        this.method = method;
    }

    public List<MethodParameter> getParameters() {
        return parameters;
    }

    public void setParameters(List<MethodParameter> parameters) {
        this.parameters = parameters;
    }
}
